package org.fnzn.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Table(name = "fngl_house")
public class FnglHouse {
    /**
     * 主键
     */
    @Id
    private String houseId;

    /**
     * 人员id
     */
    @Column(name = "staff_id")
    private String staffId;

    /**
     * 人员姓名
     */
    @Column(name = "real_name")
    private String realName;

    /**
     * 所属项目id
     */
    private String projectId;

    /**
     * 销售电话
     */
    private String phone;

    /**
     * 小区名字
     */
    @Column(name = "community_name")
    private String communityName;

    /**
     * 房号
     */
    @Column(name = "room_number")
    private String roomNumber;

    /**
     * 是否是独家房源
     */
    private String exclusive;


    /**
     * 房源等级
     */
    @Column(name = "house_level")
    private String houseLevel;

    /**
     * 报价
     */
    @Column(name = "offer_price")
    private String offerPrice;

    /**
     * 底价
     */
    @Column(name = "floor_price")
    private String floorPrice;

    /**
     * 输入室/厅/卫/阳  具体情况
     */
    private String houseDescription;

    /**
     * 房源房型
     */
    private String houseType;

    /**
     * 建筑面积
     */
    private String area;

    /**
     * 楼层/总楼层
     */
    private String floor;

    /**
     * 房源类型
     */
    private String type;

    /**
     * 朝向
     */
    private String toward;

    /**
     * 装修状况
     */
    private String decorate;

    /**
     *  建成年代
     */
    private String completeYear;

    /**
     * 卖点
     */
    private String sellPoint;

    /**
     * 来源渠道
     */
    private String sources;

    /**
     * 有无电梯
     */
    private String elevator;

    /**
     * 产权性质
     */
    @Column(name = "property_right")
    private String propertyRight;

    /**
     * 产权年限
     */
    @Column(name = "property_year")
    private String propertyYear;

    /**
     * 有无抵押
     */
    private String mortgage;

    /**
     * 展示图
     */
    private String img;

    /**
     * 备注
     */
    private String remarks;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 删除标识（0-正常,1-删除）
     */
    @Column(name = "del_flag")
    private String delFlag;

    /**
     * 获取主键
     *
     * @return houseId - 主键
     */
    public String getHouseId() {
        return houseId;
    }

    /**
     * 设置主键
     *
     * @param houseId 主键
     */
    public void setHouseId(String houseId) {
        this.houseId = houseId == null ? null : houseId.trim();
    }

    /**
     * 获取人员id
     *
     * @return staff_id - 人员id
     */
    public String getStaffId() {
        return staffId;
    }

    /**
     * 设置人员id
     *
     * @param staffId 人员id
     */
    public void setStaffId(String staffId) {
        this.staffId = staffId == null ? null : staffId.trim();
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取小区名字
     *
     * @return community_name - 小区名字
     */
    public String getCommunityName() {
        return communityName;
    }

    /**
     * 设置小区名字
     *
     * @param communityName 小区名字
     */
    public void setCommunityName(String communityName) {
        this.communityName = communityName == null ? null : communityName.trim();
    }

    /**
     * 获取房号
     *
     * @return room_number - 房号
     */
    public String getRoomNumber() {
        return roomNumber;
    }

    /**
     * 设置房号
     *
     * @param roomNumber 房号
     */
    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public String getExclusive() {
        return exclusive;
    }

    public void setExclusive(String exclusive) {
        this.exclusive = exclusive;
    }

    /**
     * 获取房源等级
     *
     * @return house_level - 房源等级
     */
    public String getHouseLevel() {
        return houseLevel;
    }

    /**
     * 设置房源等级
     *
     * @param houseLevel 房源等级
     */
    public void setHouseLevel(String houseLevel) {
        this.houseLevel = houseLevel == null ? null : houseLevel.trim();
    }

    public String getHouseDescription() {
        return houseDescription;
    }

    public void setHouseDescription(String houseDescription) {
        this.houseDescription = houseDescription;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    /**
     * 获取报价
     *
     * @return offer_price - 报价
     */
    public String getOfferPrice() {
        return offerPrice;
    }

    /**
     * 设置报价
     *
     * @param offerPrice 报价
     */
    public void setOfferPrice(String offerPrice) {
        this.offerPrice = offerPrice == null ? null : offerPrice.trim();
    }

    /**
     * 获取底价
     *
     * @return floor_price - 底价
     */
    public String getFloorPrice() {
        return floorPrice;
    }

    /**
     * 设置底价
     *
     * @param floorPrice 底价
     */
    public void setFloorPrice(String floorPrice) {
        this.floorPrice = floorPrice == null ? null : floorPrice.trim();
    }

//    /**
//     * 获取室/厅/卫/阳
//     *
//     * @return structure - 室/厅/卫/阳
//     */
//    public String getStructure() {
//        return structure;
//    }
//
//    /**
//     * 设置室/厅/卫/阳
//     *
//     * @param structure 室/厅/卫/阳
//     */
//    public void setStructure(String structure) {
//        this.structure = structure == null ? null : structure.trim();
//    }

    /**
     * 获取建筑面积
     *
     * @return area - 建筑面积
     */
    public String getArea() {
        return area;
    }

    /**
     * 设置建筑面积
     *
     * @param area 建筑面积
     */
    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    /**
     * 获取楼层/总楼层
     *
     * @return floor - 楼层/总楼层
     */
    public String getFloor() {
        return floor;
    }

    /**
     * 设置楼层/总楼层
     *
     * @param floor 楼层/总楼层
     */
    public void setFloor(String floor) {
        this.floor = floor == null ? null : floor.trim();
    }

    /**
     * 获取房源类型
     *
     * @return type - 房源类型
     */
    public String getType() {
        return type;
    }

    /**
     * 设置房源类型
     *
     * @param type 房源类型
     */
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    /**
     * 获取朝向
     *
     * @return toward - 朝向
     */
    public String getToward() {
        return toward;
    }

    /**
     * 设置朝向
     *
     * @param toward 朝向
     */
    public void setToward(String toward) {
        this.toward = toward == null ? null : toward.trim();
    }

    /**
     * 获取装修状况
     *
     * @return decorate - 装修状况
     */
    public String getDecorate() {
        return decorate;
    }

    public String getCompleteYear() {
        return completeYear;
    }

    public void setCompleteYear(String completeYear) {
        this.completeYear = completeYear;
    }

    /**
     * 设置装修状况
     *
     * @param decorate 装修状况
     */
    public void setDecorate(String decorate) {
        this.decorate = decorate == null ? null : decorate.trim();
    }

    public String getSellPoint() {
        return sellPoint;
    }

    public void setSellPoint(String sellPoint) {
        this.sellPoint = sellPoint;
    }

    /**
     * 获取来源渠道
     *
     * @return sources - 来源渠道
     */
    public String getSources() {
        return sources;
    }

    /**
     * 设置来源渠道
     *
     * @param sources 来源渠道
     */
    public void setSources(String sources) {
        this.sources = sources == null ? null : sources.trim();
    }

    /**
     * 获取有无电梯
     *
     * @return elevator - 有无电梯
     */
    public String getElevator() {
        return elevator;
    }

    /**
     * 设置有无电梯
     *
     * @param elevator 有无电梯
     */
    public void setElevator(String elevator) {
        this.elevator = elevator == null ? null : elevator.trim();
    }

    /**
     * 获取产权性质
     *
     * @return property_right - 产权性质
     */
    public String getPropertyRight() {
        return propertyRight;
    }

    /**
     * 设置产权性质
     *
     * @param propertyRight 产权性质
     */
    public void setPropertyRight(String propertyRight) {
        this.propertyRight = propertyRight == null ? null : propertyRight.trim();
    }

    /**
     * 获取产权年限
     *
     * @return property_year - 产权年限
     */
    public String getPropertyYear() {
        return propertyYear;
    }

    /**
     * 设置产权年限
     *
     * @param propertyYear 产权年限
     */
    public void setPropertyYear(String propertyYear) {
        this.propertyYear = propertyYear == null ? null : propertyYear.trim();
    }

    /**
     * 获取有无抵押
     *
     * @return mortgage - 有无抵押
     */
    public String getMortgage() {
        return mortgage;
    }

    /**
     * 设置有无抵押
     *
     * @param mortgage 有无抵押
     */
    public void setMortgage(String mortgage) {
        this.mortgage = mortgage == null ? null : mortgage.trim();
    }

    /**
     * 获取展示图
     *
     * @return img - 展示图
     */
    public String getImg() {
        return img;
    }

    /**
     * 设置展示图
     *
     * @param img 展示图
     */
    public void setImg(String img) {
        this.img = img == null ? null : img.trim();
    }

    /**
     * 获取备注
     *
     * @return remarks - 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * 设置备注
     *
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取删除标识（0-正常,1-删除）
     *
     * @return del_flag - 删除标识（0-正常,1-删除）
     */
    public String getDelFlag() {
        return delFlag;
    }

    /**
     * 设置删除标识（0-正常,1-删除）
     *
     * @param delFlag 删除标识（0-正常,1-删除）
     */
    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }
}